<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/order.js"></script>
<title>可拆分订单列表</title>
<body class="withvernav">
<div class="bodywrapper">
{{include file='/public/orderleft.tpl'}}
<div class="centercontent">
<div class="pageheader notab">
  <h1 class="pagetitle">可拆分订单列表</h1>
  <span class="pagedesc"></span>
  
  
</div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper">
<div id="basicform" class="subcontent">
   <!--搜索栏-->
          <div>
         <div style="clear: both"></div>
         <div class="page">{{$pageList}} 计{{$total}}条记录</div>
   </div>
      
    <form class="stdform stdform2" method="get" id="search" action="?">
    <input type='hidden' name='if_csv' id='if_csv'>
    <input type='hidden' name='ordersearchID' id='ordersearchID'>

      <div class="tableoptions"> 
      <select name="platformID" id="platformID"  class="selection select2_group" style="width:100px;" onChange="getshopName()" >
        <option value="0" >平台</option>
        {{foreach from=$platform item=li key=key}}
              <option value="{{$li.id}}" {{if $platformID==$li.id}} selected{{/if}}>{{$li.name}}</option>
        {{/foreach}}
        </select> <select name="shopID" id="shopname"  class="selection select2_group" style="width:150px;" >
        <option value="" >店铺</option>
        {{foreach from=$d_shop item=li key=key}}
              <option value="{{$li.id}}" {{if $shopID==$li.id}} selected{{/if}}>{{$li.name}}</option>
        {{/foreach}}
        </select>
      <select name="status" id="status">
             <option value="">-状态-</option>
             <option value="1" {{if $status=='1'}} selected{{/if}}>新订单</option>
             <option value="2" {{if $status=='2'}} selected{{/if}}>已支付</option>
             <option value="3" {{if $status=='3'}} selected{{/if}}>配货中</option>
             <option value="4" {{if $status=='4'}} selected{{/if}}>已发货</option>
             <option value="5" {{if $status=='5'}} selected{{/if}}>已完成</option>
             <option value="6" {{if $status=='6'}} selected{{/if}}>作废</option>
             <option value="7" {{if $status=='7'}} selected{{/if}}>待审查</option>
		  </select>
           订单时间段：<input type="text"  name="endtime" value="{{$endtime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> -    
       <input type="text"  name="starttime" value="{{$starttime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> 
       
       SKU: <input type="text" name="goodsku" id="goodsku" class="width100" value="{{$goodsku}}" placeholder="SKU" />
       订单额大于: <input type="text" name="goods_amount" id="goods_amount" class="width100" value="{{$goods_amount}}" placeholder="订单总金额" />
     
                           
&nbsp;
        <button class="btn btn-primary" id="searchbtn">Search</button>
     
      </div>
      
    
    </form>
    <!--搜索栏结束-->
<table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
<thead>
  <tr class="lbbt">
    <td width="3%"  bgcolor="#FEFFF1"><a onClick="allSelect('ppid[]')">全选</a></td>
    <td width="8%" bgcolor="#FEFFF1">订单编号</td>
    <td width="5%" bgcolor="#FEFFF1">状态\订单属性</td>
    <td  bgcolor="#FEFFF1" width="40">延迟</td>
    <td width="10%"  bgcolor="#FEFFF1">店铺/客户/负责人</td>
    <td width="10%" bgcolor="#FEFFF1">原金额/订单金额/总价</td>
    <td width="7%" bgcolor="#FEFFF1">国家/国家(英)</td>
    <td  bgcolor="#FEFFF1" >订单日期/导入日期</td>
    <td  bgcolor="#FEFFF1" >运费/交易号</td>
	<td  bgcolor="#FEFFF1" >客户邮箱/Paypal邮箱</td>
  </tr>
</thead>
<tbody >


	{{foreach from=$rslist item=li key=dkey}}
  <tr onDblClick="showOrderlistSell({{$li.order_id}},'{{$li.order_sn}}')" title="双击显示商品信息" style="cursor:pointer">
    <td bgcolor="{{$li.color}}"><input name="ppid[]" type="checkbox" class="none" id="ppid[]" value="{{$li.order_id}}" />    </td>
    <td valign="middle" style="position:relative;" bgcolor="{{$li.color}}">
     <a href="/orderlist/editorder?order_id={{$li.order_id}}" target="_blank"><font color="#6666FF">{{$li.order_sn}}</font></a>     </td>
    <td valign="middle" bgcolor="{{$li.color}}">
    {{$li.statustext}}
    
    <br>{{$li.order_source}}</td>
    
    <td style="position:relative;" bgcolor="{{$li.color}}">{{$li.numday}}天</td>
    <td style="position:relative;" bgcolor="{{$li.color}}">
   
      <div style="margin-left:2px;">  {{$li.shopname}} （{{$li.shopoper}}）
     <br>{{$li.consignee}}    </div>
     
      <div class="lbcp">      </div>   </td>
    <td valign="middle" bgcolor="{{$li.color}}">{{$li.moneytype}} {{$li.goods_originask}}<br>RMB {{$li.goods_amount}}</td>
    <td valign="middle" bgcolor="{{$li.color}}">{{$li.country}}<br>{{$li.country_cn}}</td>
    <td class="cz" bgcolor="{{$li.color}}">{{$li.ordertime}}<br>{{$li.add_time}}</td>
   	<td class="cz" bgcolor="{{$li.color}}">{{if $li.shipping_fee=='0.00'}}{{else}}{{$li.shipping_fee}}{{/if}}<br>{{$li.tradeid}}</td>
    	<td class="cz" bgcolor="{{$li.color}}">{{$li.email}}<br>{{$li.paypalmail}}</td>
  </tr>
   {{/foreach}}
</tbody>
</table>
</div>
</div>
 <form  method="post">
  <div class="modal fade" id="showorder" tabindex="-1" role="dialog" aria-labelledby="sshoworder" aria-hidden="true">
    <div class="modal-dialog" style="width:740px;">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" 
               aria-hidden="true">× </button>
          <h4 class="modal-title" id="sshoworderSN">   </h4>
        </div>
        <div class="modal-body">
         <table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
          <tr class="lbbt"><td width="15%" bgcolor="#FEFFF1">商品编号</td><td bgcolor="#FEFFF1" width="20%">商品名称</td><td bgcolor="#FEFFF1">数量</td><td bgcolor="#FEFFF1">价格</td><td bgcolor="#FEFFF1">成本价</td><td bgcolor="#FEFFF1">总价</td><td bgcolor="#FEFFF1">库存/仓库/仓位</td></tr>
          <tbody id="showorderlistdata"></tbody>
          </table>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" 
               data-dismiss="modal"> 关闭 </button>
          </div>
        </div>
        <!-- /.modal-content --> 
      </div>
      <!-- /.modal-dialog --> 
    </div>
  </div>
  <!-- /.modal -->
  </form>
</body>
</html>